package com.woniu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.entity.PageData;
import com.woniu.entity.dto.AdditionOrUpdateInspectorDTO;
import com.woniu.entity.dto.QueryInspectorDTO;
import com.woniu.entity.vo.*;
import com.woniu.pojo.Inspector;
import com.woniu.pojo.InspectorFeedback;
import com.woniu.pojo.Order;

import java.util.Date;

import java.util.List;

/**
* @author Ma.Lei
* @description 针对表【t_inspector】的数据库操作Service
* @createDate 2022-12-16 23:27:45
*/
public interface InspectorService extends IService<Inspector> {

    PageData listSearch(Integer currentPage, Integer pageSize, QueryInspectorDTO queryInspectorDTO);

    int disabledInspector(String id, Integer status);

    QueryInspectorVO listSearchById(String id);

    List<QueryRoadVO> selectRoadById(String id);

    int saveOrUpdated(AdditionOrUpdateInspectorDTO additionOrUpdateInspectorDTO);

    List<QueryOrderByInspectorIdVO> QueryOrderByInspectorId(String id);
    Inspector getByPhone(String phone);

    PageData findParkingRecords(String inspectorId, Date startTime, Date endTime, Integer currentPage, Integer pageSize);

    PageData findBerthRecords(String inspectorId, String roadName, Integer currentPage, Integer pageSize);


    void generateOrder(InspectorOrderVo inspectorOrderVo);

    int addInspectorFeedback(InspectorFeedback inspectorFeedback);

    String getOrderStatusByCarNum(String carNum);

    Order getOrder(String carId);


    QueryAddAndUpdeteInspectorVO listInspectorById(String id);

    InspectorDetailedStatisticsVO QueryInspectorDetailedStatisticsById(String id);
}
